cmake_minimum_required(VERSION 3.10)
project(static_library C)

set(CMAKE_C_STANDARD 99)

add_library(hello_library STATIC src/Hello.c)
target_include_directories(hello_library PUBLIC ${PROJECT_SOURCE_DIR}/include)

add_executable(static_library src/main.c)

target_link_libraries(static_library PRIVATE hello_library)